<?php
require_once 'IEntity.php';
class Sign implements IEntity {
	public $id;
	public $id_masker;
	public $id_sign_father;
	public $insert_date;
	public $text;
	public $name_masker;
	public $total_replies;
	
	public $colorfeel_red;
	public $colorfeel_green;
	public $colorfeel_blue;

	public static function getTableName() {
		return "sign";
	}

	public function setSign($id, $id_masker, $id_sign_father, $text, $insert_date, $name_masker,
	$colorfeel_red, $colorfeel_green, $colorfeel_blue, $total_replies) {
		$this -> id = $id;
		$this -> id_masker = $id_masker;
		$this -> id_sign_father = $id_sign_father;
		$this -> text = $text;
		$date = date_create($insert_date);
		$this -> insert_date = date_format($date, 'Y-m-d H:i');
		$this -> name_masker = $name_masker;
		$this -> colorfeel_red = $colorfeel_red;
		$this -> colorfeel_green = $colorfeel_green;
		$this -> colorfeel_blue = $colorfeel_blue;
		$this -> total_replies = $total_replies;
	}
	
}
?>